#ifndef MEM_H
#define MEM_H

#include <pthread.h>
#include <malloc.h>
#include <stdlib.h>

#include "mem_hash.h"

struct task;

struct mm_struct {
	unsigned long total;
	struct pointer_statist *ps_hhead; 

	struct task *task;

	pthread_mutex_t lock;
};

extern void *s_malloc(size_t size);
extern void s_free(void *ptr);
extern struct mm_struct *mm_struct_create(void);

#endif
